package com.sgb.kjwl.model.entity;

import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;

public class TwoLevelEntity<T> extends PickSelectEntity2 implements IPickerViewData {
    @SerializedName("id")
    private String id;
    @SerializedName("parentNo")
    private String parentNo;
    @SerializedName(value = "children", alternate = {"cityList"})
    T children;

    public TwoLevelEntity() {

    }

    public TwoLevelEntity(String id, String name, String no,int color) {
        super(no,name,color);
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentNo() {
        return parentNo;
    }

    public void setParentNo(String parentNo) {
        this.parentNo = parentNo;
    }

    public T getChildren() {
        return children;
    }

    public void setChildren(T children) {
        this.children = children;
    }

    @Override
    public String getPickerViewText() {
        return getName();
    }
}
